#!/usr/bin/env bash

usage="scriptname parm1 parm2 parm3"

#判断脚本文件传参不是空，则提供用户输入参数
[ -n "$1" ] || echo "$usage"

echo "The script name is ==> $0"

[ -n "$1" ] && echo "The 1st parameter is ==> $1" || exit 0
[ -n "$2" ] && echo "The 2nd parameter is ==> $2" || exit 0
[ -n "$3" ] && echo "The 3th parameter is ==> $3" || exit 0
